#include <stdio.h>
int main()
{
	int a[20] = {0};
	int n = 0;
	scanf("%d", &n);
	a[0] = 1;
	for ( int i = 1; i <= n; i++ ) 
	{
		a[i - 1] = 1;
		for ( int space = 0; space < (n - i); space++ ) {
			printf(" ");
		}
		
		for ( int k = 0; k < i; k++ ) {
			printf("%d ", a[k]);
		}
		printf("\n");
		
		for ( int j = i-1; j >= 1; j-- ) {
			a[j] = a[j-1] + a[j];
		}
	}
	return 0;
}


